#ifndef CHECKINPANEL_H
#define CHECKINPANEL_H

#include <QGroupBox>
#include <QWidget>
class QLineEdit;
class QTextEdit;
class HttpClient;
class CheckInPanel : public QGroupBox
{
    Q_OBJECT
public:
    CheckInPanel();

private slots:
    void onSendRequest();
    void onReciveResponse(const QByteArray& json);

private:
    void initComponent();
    QWidget* initRequestPanel();
    QWidget* initResponsePanel();
    QWidget* initRequestPcuInfoPanel();
    QWidget* initResponsePcuInfoPanel();
    QHash<QString,QLineEdit*> requestVariablesHash;
    QHash<QString,QLineEdit*> responseVarialbesHash;
    QHash<QString,QTextEdit*> jsonHash;

    HttpClient* client;
};

#endif // CHECKINPANEL_H
